{extend name="common@public:base"}

{block name="body"}
<body>
<div class="mark">
</div>
<div class="mark1">
    <a  class="mui-badge mui-badge-warning login_btn" id="butlogin" >立即登录</a>
    <!--<div class="load_pic"><img src="img/loading.gif" ></div>-->
</div>
<div class="content">
    <div class="user_headbox">
        <div class="user_tx"></div>
        <h1 id="username"></h1>
        <div class="signbox">
            <img src="__static__/img/mrqd.png" alt=""/>
            <p>签到</p>
        </div>
        <div class="line_pace"></div>
        <h2 id="zzc">0.00</h2>
        <h3>资产总额（元）</h3>
        <ul class="myzc">
            <li>
                <p id="kyye">0.00</p>
                <p>可用余额</p>
            </li>
            <li>
                <p id="dsje">0.00</p>
                <p>待收金额</p>
            </li>
            <li>
                <p id="ljsy">0.00</p>
                <p>累计收益</p>
            </li>
        </ul>
    </div>
    <div class="txcz">
        <h1  onclick="osw('/?user&q=code/account/cash_new','提现申请',1)">提现</h1>
        <h2  onclick="osw('/?user&q=code/account/recharge_new','在线充值',1)">充值</h2>
    </div>
    <ul class="user_li">
        <li onclick="osw('?user_tender','我的投资')">
            <h1 style="background-position: 0px 0px;"></h1>
            <h2>我的投资</h2>
            <h3></h3>
        </li>
        <li>
            <h1 style="background-position: 0px -48px;"></h1>
            <h2>回款日历</h2>
            <h3></h3>
        </li>
        <li>
            <h1 style="background-position: 0px -96px;"></h1>
            <h2>交易记录</h2>
            <h3></h3>
        </li>
        <li>
            <h1 style="background-position: 0px -144px;"></h1>
            <h2>自动投标</h2>
            <h3></h3>
        </li>
    </ul>
    <ul class="user_li">
        <li  onclick="osw('?users_hb','我的红包',1)">
            <h1 style="background-position: 0px -205px;"></h1>
            <h2>红包与加息券</h2>
            <h3></h3>
            <h4 class="new_red">NEW</h4>
        </li>
        <li onclick="osw('?jf_list','积分商城')">
            <h1 style="background-position: 0px -252px;"></h1>
            <h2>积分商城</h2>
            <h3></h3>
            <h4>3458分</h4>
        </li>
    </ul>
</div>
<div class="winbox cgzh_go">
    <div class="winbg"></div>
    <div class="win_cont">
        <h1>开通银行存管账户</h1>
        <h2>小雨投资账户升级，为保障您的资金安全，<br />请先开通恒丰银行存管账户</h2>
        <div class="ktnow">立即开通</div>
        <div class="ktno">暂不开通</div>
    </div>
</div>
<div class="winbox smrz_go">
    <div class="winbg"></div>
    <div class="win_cont">
        <h1>实名认证</h1>
        <h2>因涉及充值提现投资等重要交易，<br />请先进行实名认证。</h2>
        <div class="ktnow">立即认证</div>
        <div class="ktno">暂不认证</div>
    </div>
</div>
<div class="winbox qdcg_go">
    <div class="winbg"></div>
    <div class="win_cont">
        <h1>签到成功</h1>
        <img src="__static__/img/qdcg.png" class="qdcgbg"/>
        <h2>恭喜获得<span>1</span>积分</h2>
        <h3>累计签到14天额外获得奖励</h3>
        <button type="button" class="mui-btn-blue">知道咯</button>
    </div>
</div>
<script src="__static__/demo-files/demo.js"></script>
<script type="text/javascript">

    function rinitweb() {

        var username="毛利";
        var zzc='0.00';
        var kyye='0.00';
        var dsje='0.00';
        var ljsy;
        username = username ? username : '';
        zzc = zzc  ? zzc  : '0.00' ;
        kyye= kyye ? kyye : '0.00' ;
        dsje= dsje ? dsje : '0.00' ;
        ljsy= ljsy ? ljsy : '0.00' ;
        if (username == '') { //还未登录

            $(".load_pic").hide();
            $("#butlogin").css("display", "block");
            $(".mark").show();
            $(".mark1").show();

        } else {
            $(".mark").hide();
            $(".mark1").hide();
            $("#zzc").html(zzc);
            $("#kyye").html(kyye);
            $("#dsje").html(dsje);
            $("#ljsy").html(ljsy);
            $("#username").html(username);

            $("#login_out").css("display", "block");
        }
    }
    rinitweb();
    function login_out() {
        plus.storage.removeItem('autologin');
        plus.storage.removeItem('password');
        mui.post(weburl + '?user&q=logout', {}, function(data) {
            mypage.reload();

        }, 'html');

    }

    function logintime() {
        loadrjs("?js_users", function() {

            rinitweb();

        });
    }

    function initweb() {
        logintime();
        $("#butlogin").click(function() {
            $("#butlogin").hide();
            //$(".load_pic").show();
            osw("/?user&q=login", "会员登录", true);
        });
        setInterval("logintime()", 30000);
    }

</script>
</body>
{/block}